let data = 'Hello,Node.js！'
const fs = require('fs')
fs.writeFile('./output.txt', data, err => {
    if (err) {
        console.log(err);
    } else {
        console.log("文件写入成功！");
    }
})